package com.example.myapplication9.week6;


import com.example.myapplication9.week6.jsjf.LinkedBinaryTree;

public class test<T> {
    public static void main(String[] args) {
        LinkedBinaryTree c=new LinkedBinaryTree("b");
        LinkedBinaryTree b=new LinkedBinaryTree("c");
        LinkedBinaryTree a=new LinkedBinaryTree("Translation",c,b);
        LinkedBinaryTree e=new LinkedBinaryTree("F");
        LinkedBinaryTree f=new LinkedBinaryTree("g",a,e);

        System.out.println(f.toString());
        System.out.println(f.contains("b"));
        System.out.println(f.contains("A"));
        System.out.println(  e.getRootNode().judgement(e.getRootNode()));
        a.removeLeftsubtree();
        System.out.println(f.toString());
        f.removeRightsubtree();
        System.out.println(f.toString());

        f.removeAllelement();

        System.out.println(f.toString());
    }
}
